<?php 
require_once('loadContent.php');
?>
<?php 
//Funktion um alle Spiele zu holen
$gameList = getGames();

foreach($gameList as $games):
?>

<div class="gamesbox">
	<div class="gamebild">
		<?php echo $games['bild_path'] ;?>
	</div>
	<div class="gametitle tint">
		<h3><?php echo $games['game_title']; ?></h3>
	</div>
	<div class="gamedescription">
		<p><?php echo $games['game_description']; ?></p>
	</div>
	<div class="gamebutton">
		<a href="<?php echo $games['game_path']; ?>"> Zum Spiel </a>
	</div>
</div>

<?php
endforeach;
?>
<div id="sidebar">
			<div class="box">
				<h2>Kalender</h2>
				<div class="inner2">
					<ul>
						<li>asd</li>
					</ul>
					<p class="link"></p>
				</div>
			</div>
			<div class="box">
				<h2>News</h2>
				<div class="inner2">
					<ul>
						<li>asd</li>
					</ul>
					<p class="link">
						<a href="?site=News">Alle News</a>
						<?php
						if(1+1 == 3)
						{
						?>
						<a href="#">edit</a>
						<?php
						}
						?>
					</p>
				</div>
			</div>
		</div>